﻿//-------------------------------------------------------------------
//	Copyright (c) 2012 Fedotov I.V.
//	All rights reserved.
//-------------------------------------------------------------------
/*
	This program is free software: you can redistribute it and/or modify
	it under the terms of the GNU Lesser General Public License as published by
	the Free Software Foundation, either version 3 of the License, or
	(at your option) any later version.

	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
	GNU Lesser General Public License for more details.

	You should have received a copy of the GNU Lesser General Public License
	along with this program. If not, see http://www.gnu.org/licenses/.

	Project SVN page 
*/

#ifndef __MAIN_H__
#define __MAIN_H__


#define _CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>

//#define new new(_NORMAL_BLOCK, __FILE__, __LINE__)

#include "sptr.h"
//#include "saptr.h"

#include "misc/eventlistener.h"
#include "misc/eventsender.h"

#include <stdio.h>
#include <vector>

#include "resmanager/filecontainer.h"

#include "resmanager/resmanager.h"
#include "resmanager/simple/ustring.h"
#include "resmanager/simple/limit.h"
#include "resmanager/simple/position.h"
#include "resmanager/simple/size_xy.h"
#include "resmanager/simple/transformation.h"
#include "resmanager/language/langpairstring.h"
#include "resmanager/language/langselector.h"
#include "resmanager/language/langstring.h"
#include "resmanager/language/languages.h"

using namespace std;

int main(int argc, const char* argv[]);

int mainForLeaksDetect(int argc, const char* argv[]);
void leaksDetect();

#endif